-- GENERATED SPELL FOR [Old Crystalbark] --


function spell0_32357(pUnit, Event) --@Arcane Breath,n/a--
pUnit:FullCastSpellOnTarget(60903,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32357', 2000, 1)
end

function spell1_32357(pUnit, Event) --@Mark of Detonation,Self--
pUnit:FullCastSpellOnTarget(50506,pUnit)
pUnit:RegisterEvent('Sorts_32357', 3500, 1)
end

function Sorts_32357(pUnit, Event)
local choix_sorts_32357 = math.random(0, 1)
if choix_sorts_32357 == 0 then
pUnit:RegisterEvent('spell0_32357', 1, 1)
end
if choix_sorts_32357 == 1 then
pUnit:RegisterEvent('spell1_32357', 1, 1)
end
end

function mob32357_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32357', math.random(1500, 3000), 1)
end

function mob32357_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32357_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32357_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32357, 1, 'mob32357_Action')
RegisterUnitEvent(32357, 2, 'mob32357_Leave')
RegisterUnitEvent(32357, 3, 'mob32357_Kill')
RegisterUnitEvent(32357, 4, 'mob32357_Die')
